@REM 创建Flowable数据库

@REM 初始化环境变量
call Common.bat

@REM 执行脚本
set PGPASSWORD=%pg_password%
set PGCLIENTENCODING=UTF8
"D:/develop/PostgreSQL/bin/psql"  --echo-all --host=%pg_host% --port=%pg_port% --dbname=%pg_db% --username=%pg_username% -c "SET search_path TO %pg_schema%;" ^
      -f "%dir%/1.init-flowable/postgres/15.flowable.postgres.cmmn.create.sql" ^
      -f "%dir%/1.init-flowable/postgres/16.flowable.postgres.create.batch.sql" ^
	  -f "%dir%/1.init-flowable/postgres/01.flowable.postgres.create.common.sql" ^
      -f "%dir%/1.init-flowable/postgres/14.flowable.postgres.create.engine.sql" ^
	  -f "%dir%/1.init-flowable/postgres/11.flowable.postgres.create.entitylink.history.sql" ^
      -f "%dir%/1.init-flowable/postgres/10.flowable.postgres.create.entitylink.sql" ^
	  -f "%dir%/1.init-flowable/postgres/12.flowable.postgres.create.eventsubscription.sql" ^
      -f "%dir%/1.init-flowable/postgres/13.flowable.postgres.create.history.sql" ^
	  -f "%dir%/1.init-flowable/postgres/08.flowable.postgres.create.identity.sql" ^
      -f "%dir%/1.init-flowable/postgres/09.flowable.postgres.create.identitylink.history.sql" ^
	  -f "%dir%/1.init-flowable/postgres/07.flowable.postgres.create.identitylink.sql" ^
      -f "%dir%/1.init-flowable/postgres/06.flowable.postgres.create.job.sql" ^
	  -f "%dir%/1.init-flowable/postgres/05.flowable.postgres.create.task.history.sql" ^
      -f "%dir%/1.init-flowable/postgres/04.flowable.postgres.create.task.sql" ^
      -f "%dir%/1.init-flowable/postgres/03.flowable.postgres.create.variable.history.sql" ^
	  -f "%dir%/1.init-flowable/postgres/02.flowable.postgres.create.variable.sql"
